import React from 'react';
import ReactDom from 'react-dom';
import { HashRouter as Router, Route,Link} from './react-router-dom';
import Home from './components/Home';
import User from './components/User';
import Profile from './components/Profile';

ReactDom.render(
  <Router>
    <>
      <ul>
          <li><Link to='/'>Home</Link></li>
          <li><Link to='/user'>User</Link></li>
          <li><Link to='/profile'>Profile</Link></li>
      </ul>
      <Route exact path="/" component={Home}/>
      <Route exact path="/profile" component={Profile}/>
      <Route exact path="/user" component={User}/>
    </>
  </Router>,
  document.getElementById('root')
)

